Update to match latest gmain/gsource changes.
authorAlexander Larsson <alexl@redhat.com>
Wed, 6 Dec 2000 12:11:45 +0000 (12:11 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Wed, 6 Dec 2000 12:11:45 +0000 (12:11 +0000)
2000-12-06  Alexander Larsson  <alexl@redhat.com>

* gdk/linux-fb/gdkevents-fb.c:
Update to match latest gmain/gsource changes.

* gdk/linux-fb/gdkinput-ps2.c:
Bogus gdk_keymap_get_entries_for_keycode implementation so that
it links. Will be implemented later.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/linux-fb/gdkevents-fb.c
gdk/linux-fb/gdkinput-ps2.c

index 50ede2f1763a57c0df24073e08d4dc4fe39a033f..ec294fc959034b5c3543e8ebfe58ac8cb5e331f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-12-06  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkevents-fb.c:
+       Update to match latest gmain/gsource changes.
+
+       * gdk/linux-fb/gdkinput-ps2.c:
+       Bogus gdk_keymap_get_entries_for_keycode implementation so that
+       it links. Will be implemented later.
+
 2000-12-03  Havoc Pennington  <hp@pobox.com>
 
        * gdk/Makefile.am: add gdkkeys.[hc]
index 50ede2f1763a57c0df24073e08d4dc4fe39a033f..ec294fc959034b5c3543e8ebfe58ac8cb5e331f0 100644 (file)
@@ -1,3 +1,12 @@
+2000-12-06  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkevents-fb.c:
+       Update to match latest gmain/gsource changes.
+
+       * gdk/linux-fb/gdkinput-ps2.c:
+       Bogus gdk_keymap_get_entries_for_keycode implementation so that
+       it links. Will be implemented later.
+
 2000-12-03  Havoc Pennington  <hp@pobox.com>
 
        * gdk/Makefile.am: add gdkkeys.[hc]
index 50ede2f1763a57c0df24073e08d4dc4fe39a033f..ec294fc959034b5c3543e8ebfe58ac8cb5e331f0 100644 (file)
@@ -1,3 +1,12 @@
+2000-12-06  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkevents-fb.c:
+       Update to match latest gmain/gsource changes.
+
+       * gdk/linux-fb/gdkinput-ps2.c:
+       Bogus gdk_keymap_get_entries_for_keycode implementation so that
+       it links. Will be implemented later.
+
 2000-12-03  Havoc Pennington  <hp@pobox.com>
 
        * gdk/Makefile.am: add gdkkeys.[hc]
index 50ede2f1763a57c0df24073e08d4dc4fe39a033f..ec294fc959034b5c3543e8ebfe58ac8cb5e331f0 100644 (file)
@@ -1,3 +1,12 @@
+2000-12-06  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkevents-fb.c:
+       Update to match latest gmain/gsource changes.
+
+       * gdk/linux-fb/gdkinput-ps2.c:
+       Bogus gdk_keymap_get_entries_for_keycode implementation so that
+       it links. Will be implemented later.
+
 2000-12-03  Havoc Pennington  <hp@pobox.com>
 
        * gdk/Makefile.am: add gdkkeys.[hc]
index 50ede2f1763a57c0df24073e08d4dc4fe39a033f..ec294fc959034b5c3543e8ebfe58ac8cb5e331f0 100644 (file)
@@ -1,3 +1,12 @@
+2000-12-06  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkevents-fb.c:
+       Update to match latest gmain/gsource changes.
+
+       * gdk/linux-fb/gdkinput-ps2.c:
+       Bogus gdk_keymap_get_entries_for_keycode implementation so that
+       it links. Will be implemented later.
+
 2000-12-03  Havoc Pennington  <hp@pobox.com>
 
        * gdk/Makefile.am: add gdkkeys.[hc]
index 50ede2f1763a57c0df24073e08d4dc4fe39a033f..ec294fc959034b5c3543e8ebfe58ac8cb5e331f0 100644 (file)
@@ -1,3 +1,12 @@
+2000-12-06  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkevents-fb.c:
+       Update to match latest gmain/gsource changes.
+
+       * gdk/linux-fb/gdkinput-ps2.c:
+       Bogus gdk_keymap_get_entries_for_keycode implementation so that
+       it links. Will be implemented later.
+
 2000-12-03  Havoc Pennington  <hp@pobox.com>
 
        * gdk/Makefile.am: add gdkkeys.[hc]
index 50ede2f1763a57c0df24073e08d4dc4fe39a033f..ec294fc959034b5c3543e8ebfe58ac8cb5e331f0 100644 (file)
@@ -1,3 +1,12 @@
+2000-12-06  Alexander Larsson  <alexl@redhat.com>
+
+       * gdk/linux-fb/gdkevents-fb.c:
+       Update to match latest gmain/gsource changes.
+
+       * gdk/linux-fb/gdkinput-ps2.c:
+       Bogus gdk_keymap_get_entries_for_keycode implementation so that
+       it links. Will be implemented later.
+
 2000-12-03  Havoc Pennington  <hp@pobox.com>
 
        * gdk/Makefile.am: add gdkkeys.[hc]
index 3a6002c06ab26a5af02d292576d25a4ffa58781a..7b756c74952c85a7e4a7f6b19b0886ec3b1077a3 100644 (file)
  * Functions for maintaining the event queue *
  *********************************************/
 
-static gboolean fb_events_prepare  (gpointer  source_data,
-                                   GTimeVal *current_time,
-                                   gint     *timeout,
-                                   gpointer  user_data);
-static gboolean fb_events_check    (gpointer  source_data,
-                                   GTimeVal *current_time,
-                                   gpointer  user_data);
-static gboolean fb_events_dispatch (gpointer  source_data,
-                                   GTimeVal *dispatch_time,
-                                   gpointer  user_data);
+static gboolean fb_events_prepare  (GSource    *source,
+                                   gint       *timeout);
+static gboolean fb_events_check    (GSource    *source);
+static gboolean fb_events_dispatch (GSource    *source,
+                                   GSourceFunc callback,
+                                   gpointer    user_data);
+
+static GSourceFuncs fb_events_funcs = {
+  fb_events_prepare,
+  fb_events_check,
+  fb_events_dispatch,
+  NULL
+};
 
 guint32
 gdk_fb_get_time(void)
@@ -56,14 +59,13 @@ gdk_fb_get_time(void)
 void 
 gdk_events_init (void)
 {
-  static GSourceFuncs fb_events_funcs = {
-    fb_events_prepare,
-    fb_events_check,
-    fb_events_dispatch,
-    NULL
-  };
-
-  g_source_add (GDK_PRIORITY_EVENTS, TRUE, &fb_events_funcs, NULL, NULL, NULL);
+  GSource *source;
+
+  source = g_source_new (&fb_events_funcs, sizeof (GSource));
+  g_source_set_priority (source, GDK_PRIORITY_EVENTS);
+  
+  g_source_set_can_recurse (source, TRUE);
+  g_source_attach (source, NULL);
 }
 
 /*
@@ -121,20 +123,16 @@ gdk_events_queue (void)
 }
 
 static gboolean
-fb_events_prepare (gpointer  source_data, 
-                  GTimeVal *current_time,
-                  gint     *timeout,
-                  gpointer  user_data)
+fb_events_prepare (GSource    *source,
+                  gint       *timeout)
 {
   *timeout = -1;
 
-  return fb_events_check (source_data, current_time, user_data);
+  return fb_events_check (source);
 }
 
 static gboolean
-fb_events_check (gpointer  source_data,
-                GTimeVal *current_time,
-                gpointer  user_data)
+fb_events_check (GSource    *source)
 {
   gboolean retval;
 
@@ -148,9 +146,9 @@ fb_events_check (gpointer  source_data,
 }
 
 static gboolean
-fb_events_dispatch (gpointer source_data,
-                   GTimeVal *dispatch_time,
-                   gpointer user_data)
+fb_events_dispatch (GSource  *source,
+                   GSourceFunc callback,
+                   gpointer  user_data)
 {
   GdkEvent *event;
 
index d6119ee5b5943d50336cda027040cd2b7cfd1b9d..7c5a46a5bdc6d16b0f87e2bc81ebc502eda98312 100644 (file)
@@ -1122,6 +1122,17 @@ gdk_window_find_focus (void)
   return gdk_parent_root;
 }
 
+/* Bogus implementation */
+gboolean
+gdk_keymap_get_entries_for_keycode (GdkKeymap     *keymap,
+                                    guint          hardware_keycode,
+                                    GdkKeymapKey **keys,
+                                    guint        **keyvals,
+                                    gint          *n_entries)
+{
+  return FALSE;
+}
+
 static const guint trans_table[256][3] = {
   /* 0x00 */
   {0, 0, 0},